import { createI18n } from 'vue-i18n'
import zh from './langs/zh'
import en from './langs/en'
import tc from './langs/tc'

const messages = {
  zh,
  en,
  tc
}
const i18n = createI18n({
  locale: localStorage.getItem('lang') || 'zh', // 当前展示语言
  legacy: false, // 处理报错
  messages // 不同语言包
})

export default i18n
